import { Tooltip } from 'antd';

// 帐变类型列表 用于渲染搜索区 帐变类型下拉框
export let AccountChangeType = [
  { id: 1, name: '入金账变' },
  { id: 2, name: '代付账变' },
  { id: 3, name: '手动上分' },
  { id: 4, name: '手动下分' },
  { id: 5, name: '提现' },
  { id: 6, name: '冲正' },
  { id: 7, name: '其他' },
]
// 卡商列表 用于渲染搜索区 卡商下拉框
export let CardDealerList = [
  { id: 1, value: 'test' },
  { id: 2, value: 'test1' },
  { id: 3, value: '微笑' },
  { id: 4, value: '123' },
  { id: 5, value: '阿呆' }
]



// 卡商明细数据 
export let cardDealerDetailsData = [
  {
    key: 1,
    recordID: 123,//记录ID
    Type: '提现',//类型
    cardDealerName: 'test',//卡商名称
    cardFirm: '2022012701069707',//卡商号
    orderNumber: 'HT20220331145317374607',//订单号
    amountBeforeChange: '5117100.00',//变动前金额
    changeAmount: '+529.00',//变动金额
    amountAfterChange: '5117629.00',//变动后金额
    remarks: '请求',//备注
    operationTime: '2022-03-31 14:53:17',//操作时间
  },
  {
    key: 2,
    recordID: 1234,//记录ID
    Type: '提现',//类型
    cardDealerName: 'test',//卡商名称
    cardFirm: '2022012701069707',//卡商号
    orderNumber: 'HT20220331145317374607',//订单号
    amountBeforeChange: '5117100.00',//变动前金额
    changeAmount: '+529.00',//变动金额
    amountAfterChange: '5117629.00',//变动后金额
    remarks: '请求',//备注
    operationTime: '2022-03-31 14:53:17',//操作时间
  },
]
// 数据总条数
export let total = cardDealerDetailsData.length


// 表头 title
export let columns = [
  {
    title: '记录ID',
    dataIndex: 'recordID',
    key: 'recordID',
    width: 130,
    sorter: true,
  },
  {
    width: 130,
    title: '类型',
    dataIndex: 'Type',
    key: 'Type',
    sorter: true,
  },
  {
    width: 130,
    title: '卡商名称',
    dataIndex: 'cardDealerName',
    key: 'cardDealerName',
  },
  {
    width: 200,
    title: '卡商号',
    dataIndex: 'cardFirm',
    key: 'cardFirm',
  },
  {
    width: 200,
    title: '订单号',
    dataIndex: 'orderNumber',
    key: 'orderNumber',
    ellipsis: {
      showTitle: false,
    },
    render: orderNumber => (
      <Tooltip placement="topLeft" title={orderNumber}>
        {orderNumber}
      </Tooltip>
    ),
  },
  {
    width: 150,
    title: '变动前金额',
    dataIndex: 'amountBeforeChange',
    key: 'amountBeforeChange',
  },
  {
    width: 160,
    title: '变动金额',
    dataIndex: 'changeAmount',
    key: 'changeAmount',
  },
  {
    width: 150,
    title: '变动后金额',
    dataIndex: 'amountAfterChange',
    key: 'amountAfterChange',
  },
  {
    width: 120,
    title: '备注',
    dataIndex: 'remarks',
    key: 'remarks',
  },
  {
    width: 200,
    title: '操作时间',
    dataIndex: 'operationTime',
    key: 'operationTime',
  }
];